using System;
using System.Collections.Generic;
using System.IO;
namespace Lifter.Utility
{
	public class DinoComparer : IComparer<FileInfo>
	{
		public int Compare(FileInfo x, FileInfo y)
		{
			int result;
			if (x == null)
			{
				if (y == null)
				{
					result = 0;
				}
				else
				{
					result = -1;
				}
			}
			else
			{
				if (y == null)
				{
					result = 1;
				}
				else
				{
					int num = x.Name.CompareTo(y.Name);
					if (num != 0)
					{
						result = num;
					}
					else
					{
						result = x.Name.CompareTo(y.Name);
					}
				}
			}
			return result;
		}
	}
}
